<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导入导出实际操作演示 前端部分</title>
</head>
<body>
    <script>
        var options = {
            exportUrl: prefix + "/export",
            columns: [{
                fieId: 'id',
                title: '主键'
            },{
                fieId: 'name',
                title: '名称'
            }]
        };
        $.table.init(options);
    </script>



<a class="btn btn-warning" onclick="$.table.exportExcel()">
    <i class="fa fa-download"></i> 导出
</a>

</body>
</html>